package com.ktutnik.models
{
	import com.adobe.crypto.SHA256;
	
	import mx.utils.StringUtil;

	public class ScurityModel
	{
		public static const TOKEN:String = "ff3ac8dfac32ff5686a88c76f89a7";

		public static function generateLoginToken(userName:String):String{
			var token:String = StringUtil.substitute("{0}-{1}",
				userName, TOKEN);
			return SHA256.hash(token);
		}
	}
}